package com.magnificent.atlantis.client.data.message.messages;

import com.magnificent.atlantis.client.data.configuration.ServerConfiguration;
import com.magnificent.atlantis.common.entity.messages.ServerAcceptMeetingMessage;
import com.magnificent.atlantis.common.entity.messages.ServerMessage;

/**
 * User: Babanin
 * Date: 05.05.2009
 * Time: 1:06:34
 */
public class ClientAcceptMeetingMessage extends ClientMeetingMessage {
    public ClientAcceptMeetingMessage() {
    }

    public ClientAcceptMeetingMessage(ServerAcceptMeetingMessage serverAcceptEventMessage, ServerConfiguration configuration) {
        super(serverAcceptEventMessage, configuration);
    }

    public String getTitle() {
        return "Accept participation in meeting \"" + meetingTitle + "\"";
    }

    public ServerMessage toServerMessage() {
        ServerAcceptMeetingMessage serverAcceptEventMessage = new ServerAcceptMeetingMessage();
        super.copyDataTo(serverAcceptEventMessage);
        return serverAcceptEventMessage;
    }
}
